package com.anc.admin.config;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport;

@Configuration
@EnableAspectJAutoProxy
public class AdminMvcConfig extends WebMvcConfigurationSupport {

//    @Autowired
//    private BloomFilterInterceptor bloomFilterInterceptor;


    @Override
    public void addInterceptors(InterceptorRegistry registry) {
       //registry.addInterceptor(bloomFilterInterceptor).addPathPatterns("/**").excludePathPatterns("/auth/403", "/actuator/health");
//        registry.addInterceptor(bloomFilterInterceptor).addPathPatterns("/supplychain/api/**").excludePathPatterns("/auth/403", "/actuator/health");
    }

}
